﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using ZLDC.Common.Estate;

namespace ZLDC.Estate.CM
{
    public partial class CustomerManagerSearch : _PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ZLDC.Topo.BLL.Estate.SystemParamBLL.LoadParamType(sCustomerClass, true, "客户类型"); // 等级
                ZLDC.Topo.BLL.Estate.SystemParamBLL.LoadUsage(sUsage, true, "用途");
                ZLDC.Topo.BLL.Estate.SystemParamBLL.LoadParamType(sFitment, true, "装修");
                ZLDC.Topo.BLL.Estate.SystemParamBLL.LoadParamType(sHouseStyle, true, "样式");
                ZLDC.Topo.BLL.Estate.SystemParamBLL.LoadParamType(sDirect, true, "朝向");
                ZLDC.Topo.BLL.Estate.SystemParamBLL.LoadParamType(sType, true, "类型");
                ZLDC.Topo.BLL.Estate.SystemParamBLL.LoadParamType(infoFrom, false, "客源来源");
                infoFrom.Items.Insert(0, "全部");

                LoadCity2();                
            }
        }

        /// <summary>
        /// 加载城区
        /// </summary>
        private void LoadCity2()
        {
            ZLDC.Topo.BLL.Estate.AreaBLL.LoadCity(sCity2, 1);
            ListItem item1 = new ListItem("全部", "0");
            sCity2.Items.Insert(0, item1);
        }

    }
}
